#define _CRT_SECURE_NO_WARNINGS

#include "head.h"

Date::Date(int year, int month, int day)
{
	_year = year;
	_month = month;
	_day = day;

	//cout << _year << endl;
}

void Date::Print()
{
	cout << _year << ':' << _month << ':' << _day << endl;
}

Date::~Date()
{
	//cout << _year << endl;
}

Date::Date(Date& date)
{
	_year = date._year;
	_month = date._month;
	_day = date._day;

	cout << "Date(Date& date)" << endl;
}

Date& Test(Date& ddd)
{
	Date tmp(ddd);

	return tmp;
}